﻿@model YogaStudio.WebUI.Models.LogOnModel
@{
    ViewBag.Title = "Log On";
}

<div class="main">
    <div class="content">
        <div class="section group">
            <div class="col span_2_of_3">
                <div class="contact-form">
                    <h3>Login</h3>
                    <p>
                    Please enter your user name and password. @Html.ActionLink("Register", "Register") if you don't have an account.
                    </p>
                    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
                    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
                    <br/>
                    @Html.ValidationSummary(true, "")
                    @using (Html.BeginForm())
                    {
                        <div>
                            <fieldset>
                             
                                <div class="editor-label">
                                    @Html.LabelFor(m => m.UserName)
                                </div>
                                <div class="editor-field">
                                    @Html.TextBoxFor(m => m.UserName)
                                    @Html.ValidationMessageFor(m => m.UserName)
                                </div>
                                <div class="editor-label">
                                    @Html.LabelFor(m => m.Password)
                                </div>
                                <div class="editor-field">
                                    @Html.PasswordFor(m => m.Password)
                                    @Html.ValidationMessageFor(m => m.Password)
                                </div>
                                <div class="editor-label">
                                    @Html.CheckBoxFor(m => m.RememberMe)
                                    @Html.LabelFor(m => m.RememberMe)
                                    <span style="margin-left: 195px;">@Html.ActionLink("Forgot Password?", "ForgotPassword", "Account",null)</span>
                                </div>
                                <p>
                                    <input type="submit" value="Log On" />
                                </p>
                            </fieldset>
                        </div>
                    }
                </div>
            </div>
        </div>
    </div>
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}